FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app

#RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV TZ Asia/Shanghai 
#RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \ && echo ${TZ} > /etc/timezone
RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
 
RUN apt-get update
 
RUN apt-get install libgdiplus --assume-yes

RUN ln -s libgdiplus.so gdiplus.dll
EXPOSE 80
COPY . .
ENTRYPOINT ["dotnet", "ManagementApi.dll"]
# ENV ASPNETCORE_ENVIRONMENT Development